home *** CD-ROM | disk | FTP | other *** search
/ Champak 26 (Anniversary Edition) / Volume 26 [Anniversary Edition] - JOGO DISK .iso / Fight / bandit_kings.swf / scripts / DefineSprite_69 / frame_1 / DoAction.as
Text File  |  2006-07-26  |  496b  |  19 lines

  1. if(_parent._y + _root.speed_bag < _root.groundlevel)
  2. {
  3.    _parent._y += _root.speed_bag;
  4. }
  5. else
  6. {
  7.    i = 1;
  8.    while(i < 3)
  9.    {
  10.       if(_parent._x - 15 < _root["p" + i]._x && _root["p" + i]._x < _parent._x + 15 && _root["p" + i].carrying == "nothing" && _root["p" + i]._currentFrame < 4 && _root.finished != true)
  11.       {
  12.          _root["p" + i].loot = _parent.value;
  13.          _root["p" + i].carrying = _parent.type;
  14.          _parent.gotoAndStop(1);
  15.       }
  16.       i++;
  17.    }
  18. }
  19.